package fun.hijklmn.magic.idGenerator.server.dao;

import fun.hijklmn.magic.idGenerator.common.pojo.WorkerNode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * DB WorkerID Assigner for UID Generator Mapper 接口
 * </p>
 *
 * @author zsl
 * @since 2021-07-12
 */
public interface WorkerNodeDao extends BaseMapper<WorkerNode> {

    int addWorkerNode(WorkerNode workerNodeEntity);

    WorkerNode getWorkerNodeByHostPort(@Param("host") String host, @Param("port") String port);

}
